function userAdd() {
    let da={
        // id:localStorage.getItem("updataById"),
        code:$("#code").val(),
        typeCode:$("#userType").val(),
        name:$("#name").val(),
        password:$("#password").val(),
        sex:$("input[name='sex']:checked").val(),
        age:$("#age").val(),
        education:$("#education").val(),
        university:$("#university").val(),
        naative:$("#naative").val(),
        address:$("#address").val(),
        phone:$("#phone").val(),
        otherphone:$("#otherphone").val(),
        groupCode:$("#group-code").val(),
    }
    let data=myAjax("/user/userAdd",da,"post");
    data=data.result;
    if (data==1){
        alert("添加成功!");
        $('#middle-reght').load('user/user.html');
    }else if (data==2){
        alert("有此用户!");
    }else if (data==0){
        alert("添加失败!");
    }
}